package com.fzsf.drawingboard.bluetooth.royole;

import android.bluetooth.BluetoothDevice;

import com.fzsf.drawingboard.bluetooth.FZWritingPadConstant;
import com.fzsf.drawingboard.bluetooth.IFZWritingPad;
import com.fzsf.drawingboard.bluetooth.IFZWritingPadCallBackListener;


/**
 * Created by Taijl on 2017/9/8.
 */

public class FZWritingPad_RY implements IFZWritingPad {

    @Override
    public void scanDevice() {
        FZWritingPad_RYHelper.getPadHelper().startScan();
    }

    @Override
    public void connectDevice(BluetoothDevice device) {
        FZWritingPad_RYHelper.getPadHelper().connectDevice(device);
    }

    @Override
    public void connectDeviceByName(String deviceName) {
        FZWritingPad_RYHelper.getPadHelper().connectDevice(deviceName);
    }

    @Override
    public boolean getConnectState() {
        return FZWritingPad_RYHelper.getPadHelper().getState();
    }

    @Override
    public void switchWorkMode(int workMode) {
        FZWritingPad_RYHelper.getPadHelper().switchWorkMode(workMode);
    }

    @Override
    public void disConnect() {
        FZWritingPad_RYHelper.getPadHelper().disConnect();
    }

    @Override
    public void setFZWritingPadCallBackListener(IFZWritingPadCallBackListener listener) {
        FZWritingPad_RYHelper.getPadHelper().setSimpleListener(listener);
    }

    @Override
    public int getDefinitePadType() {
        return FZWritingPadConstant.FZWritingPadType.TYPE_ROLOLE;
    }
}
